function Person(name,age,gender){
    this.name = name;
    this.age = age;
    this.gender = gender;
    this.friends = ['yu','liang']
}
Person.prototype = {
    constructor:Person,
    sayName(){
        console.log(this.name)
    }
}
var person1 = new Person('moyu',23,'female')
var person2 = new Person('moyu',23,'female')
person1.friends.push('jiang')
console.log(person1.friends);
console.log(person1.friends === person2.friends);
console.log(person1.sayName === person2.sayName);
